import Vue from 'vue'
import axios from 'axios'

import App from './App'
import router from './router'
import {Button, InputNumber, Card, Row, Col, Container, Header, Aside, Main, Footer, ButtonGroup, Message, Dialog} from 'element-ui'
import './assets/theme.scss'

if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
Vue.http = Vue.prototype.$http = axios
Vue.config.productionTip = false

Vue.use(Button)
Vue.use(InputNumber)
Vue.use(Card)
Vue.use(Row)
Vue.use(Col)
Vue.use(Container)
Vue.use(Header)
Vue.use(Aside)
Vue.use(Main)
Vue.use(Footer)
Vue.use(ButtonGroup)
Vue.use(Dialog)
Vue.prototype.$message = Message
/* eslint-disable no-new */
new Vue({
  components: { App },
  router,
  template: '<App/>'
}).$mount('#app')
